﻿using Domain.Entity.ord;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.PurchaseReturn_dService
{
    public interface IPurchaseReturn_dService
    {
        //添加退货明细
        Task<int> AddPurchaseReturn_d(PurchaseReturn_d purchaseReturn_D);

        //根据purtId查询明细
        Task<List<PurchaseReturn_d>> GetPurchaseReturn_Ds(int purtId);


        //修改退货明细
        Task<int> UpdatePurchaseReturn_d(PurchaseReturn_d purchaseReturn_D);

        //删除退货明细
        Task<int> DeletePurchaseReturn_d(int id);

        //更新出库数量
        Task<int> UpdateNum(int purtdid, int oknum, int nonum);

        //根据进货退货单与货品获取到主键id
        Task<int> Getid(int purtid, int procid);
    }
}
